package com.baobao.service;

import com.baobao.domain.Address;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Address entities
 * 
 */
public interface AddressService {

	/**
	 * Load an existing Address entity
	 * 
	 */
	public Set<Address> loadAddresss();

	/**
	 * Save an existing Address entity
	 * 
	 */
	public void saveAddress(Address address);

	/**
	 * Return a count of all Address entity
	 * 
	 */
	public Integer countAddresss();

	/**
	 * Return all Address entity
	 * 
	 */
	public List<Address> findAllAddresss(Integer startResult, Integer maxRows);

	/**
	 * Delete an existing Address entity
	 * 
	 */
	public void deleteAddress(Address address_1);

	/**
	 */
	public Address findAddressByPrimaryKey(String phone, String banjiId);
	
	/**
	 *  根据phone查找address列表
	 */
	public Set<Address> findAddressByPhone(String phone);
	
	/**
	 *  根据banjiId查找address列表
	 */
	public Set<Address> findAddressByBanjiId(String banjiId);
}